package main

import (
	"net/http"
	"goBasic/ketanx/help"
	"bytes"
	"net/url"
	"goBasic/ketanx/0605http/util"
)

func main()  {
	test1()


}

//var urlStr string = "https://www.toutiao.com/search/suggest/initial_page/"
var urlstr2 string = "http://www.webxml.com.cn/WebServices/WeatherWebService.asmx/getWeatherbyCityName"

func test1()  {
	client := http.Client{}

	param := url.Values{"theCityName":{"北京"},}
	buffer := bytes.NewBufferString(param.Encode())


	response, err := client.Post(urlstr2, "application/x-www-form-urlencoded", buffer)
	help.CheckError(err)

	util.ShowResponse(response)
}